﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ARR.Entities.ComponentModel;
using ARR.Entities.Validation;
using System.Runtime.Serialization;
using DDF.Entity;

namespace ARR.Entities
{
    public partial class Store
    {
        [DataMember]
        public Country Country { get; set; }

        protected override List<ValidationBase> SetValidations()
        {
            List<ValidationBase> inputValidations = (new StoreInputValidations(this)).CreateValidations();

            return inputValidations;
        }

        public void ChangeRowState(EntityState state)
        {
            this.row.ChangeState(state);
        }

        public EntityState RowState
        {
            get
            {
                return this.row.GetEntityState();
            }
        }
    }

    public enum StoreSegmentations
    {
        Attribute1
        ,
        Attribute2
            ,
        City
            ,
        Format
            ,
        Layout
            ,
        OpeningHours
            ,
        Region
            ,
        SEL
            ,
        SELCustomers
            ,
        SELLocation
            ,
        ShoppingOccasion
            ,
        ShopType
            ,
        Size
            ,
        State
          , SubRegion
    }
}
